x86/nestedhvm: properly clean up after failure to set up all vCPU-s
authorJan Beulich <jbeulich@suse.com>
Mon, 4 Feb 2013 11:03:38 +0000 (12:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Feb 2013 11:03:38 +0000 (12:03 +0100)
commit29aede13d56f877b227e7afcd049e804b8a5a3ca
tree54c8a28b33f083b09d77ca61c6c4e2d1e6de4259
parente7dda8ec9fc9020e4f53345cdbb18a2e82e54a65
x86/nestedhvm: properly clean up after failure to set up all vCPU-s

This implies that the individual destroy functions will have to remain
capable of being called for a vCPU that the corresponding init function
was never run on.

Once at it, also clean up some inefficiencies in the corresponding
parameter validation code.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/nestedhvm.c